package com.yanmaohu.nikita.data.expression;

import com.yanmaohu.nikita.data.function.ArgumentList;

/**
 * @author Bright Lee
 */
public final class InvocationExpression extends Expression {

    private Expression function;
    private ArgumentList argumentList;

    public InvocationExpression(int beginIndex, int endIndex, Expression function, ArgumentList argumentList) {
        super(beginIndex, endIndex);
        this.function = function;
        this.argumentList = argumentList;
    }

    public Expression getFunction() {
        return function;
    }

    public ArgumentList getArgumentList() {
        return argumentList;
    }

}
